//
//  UIStackView.swift
//  Automobile
//
//  Created by erkebulan elzhan on 7/20/20.
//  Copyright © 2020 erkebulan elzhan. All rights reserved.
//

import UIKit

extension UIStackView {
    func customStackView(radius: CGFloat = 0) {
        let subView = UIView(frame: bounds)
        subView.backgroundColor = .white
        subView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        insertSubview(subView, at: 0)

        subView.layer.cornerRadius = radius
        subView.layer.masksToBounds = true
        subView.clipsToBounds = true
    }
}


